<%@ page language="java" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@ include file="../include/taglib.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  	 <title>添加角色信息</title>
  	 <%@ include file="../include/jsCss.jsp" %>
     <script>
     	function saveUpdate() {
     		var sal =  document.getElementById("sal").value;
     		var comm =  document.getElementById("comm").value;
     		var nick = /^[0-9]$/;
			if(!nick.test(sal)){
				alert("手机号码只能是数字");
				return false
			}
			if (!nick.test(comm)) {
				alert("固定电话只能是数字");
				return false
			}
			return true;
			
     	}
     </script>
  </head>
  
  <body>
  	<form action="role!roleSaveOrUpdate.html" onsubmit="return saveUpdate();" method="post">
     <table border="1">
     	<tr>
     		<td colspan="2">
     			添加角色信息
     		</td>
     	</tr>
     	 
     	<tr>
			<td>角色名</td>
			<td><input type="text" name="roleName" /> </td>
     	</tr>
     	<tr>
			<td>备注</td>
			<td>
				<input type="text" name="remark"/>
			</td>
     	</tr>
     	<tr>
			<td>状态</td>
			<td>
				<select name="status">
					<option value="0">有效</option>
					<option value="1">无效</option>
				</select>
			</td>
     	</tr>
     	 
     	<tr>
     		<td colspan="2">
     		  <input type="submit" value="提交" /> 
     		  &nbsp;&nbsp;
     		  <input type="reset" value="重置" />
     	    </td>
     	</tr>
     </table>
     </form>
  </body>
</html>
